package poker.controller;

import poker.model.GameBean;

public class GameController {
	
	private GameBean gameBean;
	
	public String newTable()
	{			
		gameBean.newTable();
		
		return "table";
	}
	
	public String leaveTable()
	{			
		return "leaveTable";
	}
	
	public String newGame()
	{				
		gameBean.newGame();
		
		return "table";
	}
	
	public String bet()
	{
		gameBean.bet();
		
		return "table";
	}
	
	public String check()
	{
		gameBean.check();
	
		return "table";
	}
	
	public String fold()
	{
		gameBean.fold();
		
		return "table";
	}
	
	public GameBean getGameBean() {
		return gameBean;
	}

	public void setGameBean(GameBean gameBean) {
		this.gameBean = gameBean;
	}
	
}
